import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Container  from '@/container/Container'

import tableRouter from './modules/table'

Vue.use(Router)

/* Router Modules */

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      redirect:'/login'
    },
    {
      path:'/login',
      name:'Login',
      component:() =>import('@/views/login/index')
    },
    {
      path:'/error',
      name:'Error',
      component:() =>import('@/views/error/index')
    },
    tableRouter,
  ]
})
